{% extends "base.html" %}
{% block billboard %}
  <ul id="nav-choice">
  <li><a href="#">by date</a></li>
  <li><a href="#">by tag</a></li>
  <li><a href="#">todo</a></li>
  <li><a href="#">have done</a></li></ul>

{% endblock %}

{% block content %}
<br/>
{% regroup object_list by dostatus as grouped %}
<ul>
{% for group in grouped %}
    <li>{{ group.grouper }}
    <ul>
        {% for item in group.list %}
        <li> <h2>{{ item.title }}</h2>
    <p>{{ item.pub_date }}</p>
    <p>{{ item.content }}</p>
    <p>{{ item.tag_list}}</p>
      </li>
        {% endfor %}
    </ul>
{% endfor %}
</ul>

{% for entry in object_list %}
    <h2>{{ entry.title }}</h2>
    <p>{{ entry.pub_date }}</p>
    <p>{{ entry.content }}</p>
    <p>{{ entry.tag_list}}</p>
    
    <p><a href="/edit/{{entry.id}}">Edit</a> <a href="/del/{{entry.id}}">del</a> </p>
{% endfor %}

{% endblock %}
